// This file was decompiled using SASCM.ini published on 2077-03-20
{$CLEO .cs}
{$USE ini}

0000: NOP 
wait 0 
if 
  does_file_exist "cleo\actioncam_yuikawa22_onfoot.ini" 
jf @AIM_37 
       

  read_float_from_ini_file 1@ = read_float_from_ini_file "cleo\actioncam_yuikawa22_onfoot.ini" section "FOV_ONFOOT" key "FOV_SPRINT" 
  read_int_from_ini_file 2@ = read_int_from_ini_file "cleo\actioncam_yuikawa22_onfoot.ini" section "WOOBLE_FX" key "WOOBLE_STR" 
  read_int_from_ini_file 3@ = read_int_from_ini_file "cleo\actioncam_yuikawa22_onfoot.ini" section "FOV_ONFOOT" key "TOGGLE_SPRINT" 

:AIM_31
wait 0 
if or 
  3@ == 1
not 3@ == 0
jf @AIM_39
jump @AIM_33

:AIM_39
wait 0 
if 
  3@ == 0
jf @AIM_31
jump @AIM_34

:AIM_33
wait 0 
if 
  Player.Defined($PLAYER_CHAR)
jf @AIM_33 
if 
  not Actor.Driving($PLAYER_ACTOR)
jf @AIM_33
if
  044B:   actor $PLAYER_ACTOR on_foot 
jf @AIM_33 
if
00E1:  player 0 pressed_key 16
jf @AIM_33
if or
  Actor.Animation($PLAYER_ACTOR) == "SPRINT_CIVI"
  Actor.Animation($PLAYER_ACTOR) == "PLAYERSPRINT_ARMED"
  Actor.Animation($PLAYER_ACTOR) == "RUN_CSAW_RIGHT"
  Actor.Animation($PLAYER_ACTOR) == "WALK_CSAW_RIGHT"
  Actor.Animation($PLAYER_ACTOR) == "WALKST_CSAW_RIGHT"
  Actor.Animation($PLAYER_ACTOR) == "LIMP"
jf @AIM_19
0801: get_camera_zoom_factor_to 0@ // float 
jump @AIM_24

:AIM_24 
0931: lock_camera_zoom 1
0922: set_camera_zoom_from 0@ to 1@ timelimit 300 smooth_transition 1
jump @AIM_34

:AIM_34
wait 0 
if 
  Player.Defined($PLAYER_CHAR)
jf @AIM_34 
if 
  not Actor.Driving($PLAYER_ACTOR)
jf @AIM_34
if
  044B:   actor $PLAYER_ACTOR on_foot 
jf @AIM_34 
if
00E1:  player 0 pressed_key 16
jf @AIM_34
if or
  Actor.Animation($PLAYER_ACTOR) == "SPRINT_CIVI"
  Actor.Animation($PLAYER_ACTOR) == "PLAYERSPRINT_ARMED"
  Actor.Animation($PLAYER_ACTOR) == "RUN_CSAW_RIGHT"
  Actor.Animation($PLAYER_ACTOR) == "WALK_CSAW_RIGHT"
  Actor.Animation($PLAYER_ACTOR) == "WALKST_CSAW_RIGHT"
  Actor.Animation($PLAYER_ACTOR) == "LIMP"
jf @AIM_34
Player.SetDrunkVisuals($PLAYER_CHAR, 2@) 
jump @AIM_44

:AIM_44
wait 0 
jump @AIM_25

:AIM_25
wait 0
if
80E1:  not player 0 pressed_key 16
jf @AIM_25
0931: lock_camera_zoom 0
wait 500 
jump @AIM_22 
 
:AIM_22
wait 500 
Player.SetDrunkVisuals($PLAYER_CHAR, 0)
jf @AIM_44
jump @AIM_19 

:AIM_19
jump @AIM_31 

:AIM_37
wait 0 
terminate_this_custom_script 
